#include "UdpServer.hpp"

// ./server 8899
int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        std::cout << "指令错误: ./server port" << std::endl;
    }
    uint16_t port = std::stoi(argv[1]);

    Route rout;
    service_t func = bind(&Route::route, &rout, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3);
    
    UdpServer sv(func, port);
    sv.Start();
    
    return 0;
}